From 0dba10b8e37f3f63ed9f5ed449d9e9e0c8c9f1aa Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Fri, 18 Feb 2011 19:07:11 +0000 Subject: [PATCH] libxl regression: don't require vncpasswd when password is empty string Don't require an empty password when the guest config file has the entry vncpasswd='' Instead, do not require a password at all in this case. Signed-off-by: Christoph Egger Committed-by: Ian Jackson --- tools/libxl/libxl_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index b660dbf21d..bc0bae7a96 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -74,7 +74,7 @@ static char ** libxl_build_device_model_args_old(libxl__gc *gc, } else { vncarg = "127.0.0.1:0"; } - if (info->vncpasswd) + if (info->vncpasswd && (info->vncpasswd[0] != '\0')) vncarg = libxl__sprintf(gc, "%s,password", vncarg); flexarray_append(dm_args, "-vnc"); flexarray_append(dm_args, vncarg); -- 2.30.2